home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / icon / czesc_2 / magicexpansion / install / install_me13_english < prev    next >
Text File  |  1994-08-12  |  6KB  |  284 lines

  1. ;
  2. ; Installation script for...
  3. ;
  4. ; **********************************************************************
  5. ;
  6. ;                         MagicExpansion 1.3
  7. ;                            - Giftware -
  8. ;                  Copyright © 1994 by Johannes Beigel
  9. ;
  10. ; **********************************************************************
  11. ;
  12.  
  13. ( set @default-dest "SYS:" )
  14. ( set vernum ( getversion "exec.library" ( resident ) ) )
  15. ( set ver ( / vernum 65536 ) )
  16.  
  17. ( complete 0 )
  18.  
  19. ; --------------------
  20. ; Ask what to install
  21. ; --------------------
  22.  
  23. ( set parts
  24.  ( askoptions
  25.   ( prompt "Choose the items you would like installed." )
  26.   ( choices "C include file"
  27.             "MUI image sets"
  28.             "Palettes"
  29.             "Patterns"
  30.             "OS 2.x window patterns"
  31.             "Mouse pointers"
  32.             "Char-Sets" )
  33.   ( help "C include file: Useful new definitions for MUI programming\n\n"
  34.          "MUI image sets: New MUI image sets\n\n"
  35.          "Palettes: A few new palettes (alternatives to the original MagicWB palette)\n\n"
  36.          "Patterns: New Workbench background patterns\n\n"
  37.          "OS 2.x window patterns: old-style window patterns for the \"WBPattern\" prefs-ed\n\n"
  38.          "Mouse pointers: Several normal and busy mouse pointers.\n\n"
  39.          "Char-Sets: Color fonts for your own icons and patterns." )
  40.  )
  41. )
  42.  
  43. ( complete 14 )
  44.   
  45. ; --------------------
  46. ; Install the include file
  47. ; --------------------
  48.  
  49. ( if( IN parts 0 )
  50. (
  51.  
  52.  ( set includedest
  53.   ( askdir
  54.    ( prompt "Please select a place for the include file." )
  55.    ( default "INCLUDE:libraries/" )
  56.    ( help "Choose a directory where the include file should be copied to. The best place is"
  57.           "INCLUDE:libraries/." )
  58.   )
  59.  )
  60.  
  61.  ( makedir includedest )
  62.  ( working "Installing include file" )
  63.  ( copyfiles ( source "/include/libraries/muidefs.h" ) ( dest includedest ) )
  64.  
  65. )
  66. )
  67.  
  68. ( complete 28 )
  69.  
  70. ; --------------------
  71. ; Install the MUI image sets
  72. ; --------------------
  73.  
  74. ( if( IN parts 1 )
  75. (
  76.  
  77.  (set imgsetsdest
  78.   ( askdir
  79.    ( prompt "Please select a place for the MUI image sets." )
  80.    ( default "SYS:Prefs/MUI-Images" )
  81.    ( help "Choose a directory where the MUI image sets will be copied to. You should use the same "
  82.           "directory as you selected during installation of MUI (default: SYS:Prefs/Mui-Images/)." )
  83.   )
  84.  )
  85.  
  86.  ( makedir imgsetsdest )
  87.  
  88.  ( working "Installing MUI image sets" )
  89.  
  90.  ( copyfiles
  91.   ( prompt "Installing MUI image sets.." )
  92.   ( source "/MUI-Images" )
  93.   ( all )
  94.   ( confirm )
  95.   ( dest imgsetsdest )
  96.   ( help @copyfiles-help )
  97.  )
  98.  
  99. )
  100. )
  101.  
  102. ( complete 42 )
  103.  
  104. ; --------------------
  105. ; Install the palettes
  106. ; --------------------
  107.  
  108. ( if( IN parts 2 )
  109. (
  110.  
  111.  ( set palettedest
  112.   ( askdir
  113.    ( prompt "Please select a place for the color palettes." )
  114.    ( default "SYS:Prefs/Presets" )
  115.    ( help "Choose a directory where the palettes should be copied to." )
  116.   )
  117.  )
  118.  
  119.  ( working "Installing color palettes" )
  120.  ( makedir palettedest )
  121.  
  122.  ( if ( < ver 39 )
  123.  (
  124.  
  125.   ( copyfiles
  126.    ( prompt "Installing OS 2.x palettes.." )
  127.    ( source "/OS2Palettes" )
  128.    ( all )
  129.    ( dest palettedest )
  130.    ( confirm )
  131.    ( help @copyfiles-help )
  132.   )
  133.  
  134.  )
  135.  (
  136.  
  137.   ( copyfiles
  138.    ( prompt "Installing OS 3.x palettes.." )
  139.    ( source "/OS3Palettes" )
  140.    ( all )
  141.    ( dest palettedest )
  142.    ( confirm )
  143.    ( help @copyfiles-help )
  144.   )
  145.  
  146.  )
  147.  )
  148.  
  149. )
  150. )
  151.  
  152. ( complete 56 )
  153.  
  154. ; --------------------
  155. ; Install the background patterns
  156. ; --------------------
  157.  
  158. ( if( IN parts 3 )
  159. (
  160.  
  161.  ( set patdest
  162.   ( askdir
  163.    ( prompt "Please select a place for the background patterns." )
  164.    ( default "SYS:Prefs/Patterns" )
  165.    ( help "Choose a directory where the background patterns should be copied to. This should be "
  166.           "the same directory as your old directory with the MagicWB patterns in it." )
  167.   )
  168.  )
  169.  
  170.  ( working "Installing background patterns" )
  171.  ( makedir patdest )
  172.  
  173.  ( copyfiles
  174.   ( prompt "Installing background patterns.." )
  175.   ( source "/Patterns" )
  176.   ( all )
  177.   ( dest patdest )
  178.   ( confirm )
  179.   ( help @copyfiles-help )
  180.  )
  181.  
  182. )
  183. )
  184.  
  185. ( complete 70 )
  186.  
  187. ; --------------------
  188. ; Install the 2.x background patterns
  189. ; --------------------
  190.  
  191. ( if( IN parts 4 )
  192. (
  193.  
  194.  ( set winpatdest
  195.   ( askdir
  196.    ( prompt "Please select a place for the OS 2.x window background patterns." )
  197.    ( default "SYS:Prefs/Presets" )
  198.    ( help "Choose a directory where the window patterns should be copied to. This is normally "
  199.           "SYS:Prefs/Presets/." )
  200.   )
  201.  )
  202.  
  203.  ( working "Installing OS 2.x window background patterns" )
  204.  ( makedir winpatdest )
  205.  
  206.  ( copyfiles
  207.   ( prompt "Installing OS 2.x window patterns.." )
  208.   ( source "/OS2WinPatterns" )
  209.   ( all )
  210.   ( dest winpatdest )
  211.   ( confirm )
  212.   ( help @copyfiles-help )
  213.  )
  214.  
  215. )
  216. )
  217.  
  218. ( complete 84 )
  219.  
  220. ; --------------------
  221. ; Install the mouse pointers
  222. ; --------------------
  223.  
  224. ( if( IN parts 5 )
  225. (
  226.  
  227.  ( set ptrdest
  228.   ( askdir
  229.    ( prompt "Please select a place for the mouse pointers." )
  230.    ( default "SYS:Prefs/Presets" )
  231.    ( help "Choose a directory where the mouse pointers should be copied to. This is normally "
  232.           "SYS:Prefs/Presets/." )
  233.   )
  234.  )
  235.  
  236.  ( working "Installing mouse pointers" )
  237.  ( makedir ptrdest )
  238.  
  239.  ( copyfiles
  240.   ( prompt "Installing mouse pointers.." )
  241.   ( source "/Pointers" )
  242.   ( all )
  243.   ( dest ptrdest )
  244.   ( confirm )
  245.   ( help @copyfiles-help )
  246.  )
  247.  
  248. )
  249. )
  250.  
  251. ; ------------------
  252. ; Install the Char-Sets
  253. ; ------------------
  254.  
  255. ( if ( IN parts 6 )
  256. (
  257.  
  258.  ( set fontdest
  259.   ( askdir
  260.    ( prompt "Please select a place for the char sets." )
  261.    ( default "SYS:" )
  262.    ( help "Choose a directory where the char sets will be copied to." )
  263.   )
  264.  )
  265.  
  266.  ( working "Installing fonts" )
  267.  ( makedir fontdest )
  268.  
  269.  ( copyfiles
  270.   ( prompt "Installing fonts.." )
  271.   ( source "/CharSets" )
  272.   ( all )
  273.   ( dest fontdest )
  274.   ( confirm )
  275.   ( help @copyfiles-help )
  276.  )
  277.  
  278. )
  279. )
  280.  
  281. ( complete 100 )
  282.  
  283. ( exit "Installation of MagicExpansion 1.3 complete. Hope you'll have fun with it. " )
  284.